package com.wangyadong.hobby.schedule.jobtask.jvm;

/**
 * <p>
 *
 * @author <714037465@qq.com>
 * @since 2018/11/2316:03
 **/
public class Dispatch {

    static class QQ {

    }

    static class _360 {

    }

    public static class Father {
        public void hardChoice(QQ arg) {
            System.out.println("father choose the qq");
        }

        public void hadrChoice(_360 arg) {
            System.out.println("the father choose the 360");
        }
    }

    public static class Son extends Father {
        public void hardChoice(QQ arg) {
            System.out.println("Son choose the qq");
        }

        public void hadrChoice(_360 arg) {
            System.out.println("the Son choose the 360");
        }
    }

    public static void main(String[] args) {
        Father father = new Father();
        Father son = new Son();
        father.hadrChoice(new _360());
        son.hardChoice(new QQ());
    }
}
